<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var name = '222';
			var a = {
				name: '111',
				say: function(){
					console.log(this.name);
				}
			}
			
			var fun = a.say;
			fun(); // function(){clog(this.name)} this -> window
			a.say(); // 在对象内部调用 this -> 对象
			
			var b = {
				name: '222',
				say: function(fun){
					fun();
				}
			}
			
			b.say(a.say); //  fun -> 在window里面 -> this -> window
			b.say = a.say;  // this -> b对象
			b.say();
		</script>
	</body>
</html>
